//
//  UIView+gerResponder.m
//  Pink
//
//  Created by ZhongDaYunKe on 15/12/7.
//  Copyright © 2015年 ycy. All rights reserved.
//

#import "UIView+gerResponder.h"

@implementation UIView (gerResponder)


- (UIViewController *)responderController
{
    UIResponder *next=[self nextResponder];
    do {
        if([next isKindOfClass:[UIViewController class]])
        {
            return (UIViewController *)next;
        }
        next=[next nextResponder];
    } while (next!=nil);
    return nil;
}


@end
